package com.youlu.campus.entity.data;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "order_price_statistics")
public class OrderPriceStatistics extends EntityBase {
    /**
     * 购买次数
     */
    @Indexed(unique = true)
    private Integer payNum;
    private Integer refundNum;
    /**
     * 购买GMV
     */
    private Double gmv;
    /**
     * 总数量
     */
    @Indexed
    private Double num;
    /**
     * 退款GMV
     */
    private Double refundGmv;
    /**
     * 数量占比
     */
    private Double payNumRatio;
    /**
     * GMV占比
     */
    private Double payGmvRatio;
}
